package cn.dankal.lequ.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
import cn.dankal.lequ.R;

public class LoginActivity extends AppCompatActivity {

    @Bind(R.id.bt_login)
    Button bt_login;
    @Bind(R.id.fast_register)
    TextView fast_register;
    @Bind(R.id.forget_passwd)
    TextView forget_passwd;

    @Bind(R.id.iv_qq)
    ImageView iv_qq;
    @Bind(R.id.iv_wechat)
    ImageView iv_wechat;
    @Bind(R.id.iv_weibo)
    ImageView iv_weibo;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.bt_login, R.id.fast_register, R.id.forget_passwd, R.id.iv_qq, R.id.iv_wechat, R.id.iv_weibo})
    public void loginClick(View view) {
        switch (view.getId()) {
            case R.id.bt_login:

                break;
            case R.id.fast_register:
                Intent intent = new Intent(LoginActivity.this, RegisterActivity.class);
                startActivity(intent);
                break;
            case R.id.forget_passwd:
                Intent intent1 = new Intent(LoginActivity.this,ForgetPasswdActivity.class);
                startActivity(intent1);
                break;
            case R.id.iv_qq:
                thirdlogin();
                break;
            case R.id.iv_wechat:
                thirdlogin();

                break;
            case R.id.iv_weibo:
                thirdlogin();

                break;
            default:
                break;
        }

    }

    private void thirdlogin() {

    }
}
